import { Link, useLocation } from 'react-router-dom'
function Home() {
  let location = useLocation()
  return (
    <div>
      <div>Home</div>
      <div>回参 {location.state.ids}</div>
      <hr></hr>
      {/* ?传参 */}
      <Link to="/about?id=123">跳转about</Link>
      <hr></hr>
      <Link to="/my/111">跳转my</Link>
    </div>
  )
}

export default Home